import Home from "../views/home/Home.vue"
import PersonCenter from "../views/person-center/PersonCenter.vue"
import NewAdd from "../views/new-manage/NewAdd.vue"
import NewList from "../views/new-manage/NewList.vue"
import ProductAdd from "../views/product-manage/ProductAdd.vue"
import ProductList from "../views/product-manage/ProductList.vue"
import UserAdd from "../views/user-manage/UserAdd.vue"
import UserList from "../views/user-manage/UserList.vue"

const RouteList = [
    {
        path:"/index",
        name:"index",
        component:Home
    },
    {
        path:"/center",
        name:"center",
        component:PersonCenter
    },
    {
        path:"/new-manage/newAdd",
        name:"newAdd",
        component:NewAdd
    },
    {
        path:"/new-manage/newList",
        name:"newList",
        component:NewList
    },
    {
        path:"/product-manage/productAdd",
        component:ProductAdd
    },
    {
        path:"/product-manage/productList",
        component:ProductList
    },
    {
        path:"/user-manage/userAdd",
        component:UserAdd
    },
    {
        path:"/user-manage/userList",
        component:UserList
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/index'
    }
]
export default  RouteList